<%@ page import="launchramp.CommunityWorks" %>



<div class="fieldcontain ${hasErrors(bean: communityWorksInstance, field: 'organization', 'error')} ">
	<label for="organization">
		<g:message code="communityWorks.organization.label" default="Organization" />
		
	</label>
	<g:textField name="organization" pattern="${communityWorksInstance.constraints.organization.matches}" value="${communityWorksInstance?.organization}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: communityWorksInstance, field: 'firstName', 'error')} ">
	<label for="firstName">
		<g:message code="communityWorks.firstName.label" default="First Name" />
		
	</label>
	<g:textField name="firstName" pattern="${communityWorksInstance.constraints.firstName.matches}" value="${communityWorksInstance?.firstName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: communityWorksInstance, field: 'lastName', 'error')} ">
	<label for="lastName">
		<g:message code="communityWorks.lastName.label" default="Last Name" />
		
	</label>
	<g:textField name="lastName" pattern="${communityWorksInstance.constraints.lastName.matches}" value="${communityWorksInstance?.lastName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: communityWorksInstance, field: 'email', 'error')} ">
	<label for="email">
		<g:message code="communityWorks.email.label" default="Email" />
		
	</label>
	<g:field type="email" name="email" value="${communityWorksInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: communityWorksInstance, field: 'phone', 'error')} ">
	<label for="phone">
		<g:message code="communityWorks.phone.label" default="Phone" />
		
	</label>
	<g:textField name="phone" pattern="${communityWorksInstance.constraints.phone.matches}" value="${communityWorksInstance?.phone}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: communityWorksInstance, field: 'address', 'error')} ">
	<label for="address">
		<g:message code="communityWorks.address.label" default="Address" />
		
	</label>
	<g:textField name="address" value="${communityWorksInstance?.address}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: communityWorksInstance, field: 'bio', 'error')} ">
	<label for="bio">
		<g:message code="communityWorks.bio.label" default="Bio" />
		
	</label>
	<g:textField name="bio" value="${communityWorksInstance?.bio}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: communityWorksInstance, field: 'image', 'error')} required">
	<label for="image">
		<g:message code="communityWorks.image.label" default="Image" />
		<span class="required-indicator">*</span>
	</label>
	<input type="file" id="image" name="image" />
</div>

